#ifndef _DSWLDCLIENT_H
#define _DSWLDCLIENT_H
#include <libbase/dswtcpclient_base.h>

class CDswLDClient : public CDswtcpclient_base
{
public:
	CDswLDClient(LPST_ENV_T pEnv, char* pHost, int nPort, bool bIsV3, LPST_ALARM_NODE_T pAlarmNode);
	virtual ~CDswLDClient();
protected:
	virtual void OnError(struct bufferevent *bev, short events){delete this;};
	virtual void OnConnect(struct bufferevent *bev, short events);
private:
	bool m_bIsV3;
	ST_ALARM_NODE_T m_nAlarmNode;
};

#endif

